<?php
/**
 * Created by PhpStorm.
 * User: CodeShuhao
 * Date: 2019/6/17
 * Time: 18:16
 */

namespace app\common\validate;


use think\Validate;

abstract class BasicValidate extends Validate
{


    //签名验证
    protected function checkSign($value,$rule,$data=[])
    {
        return think_ucenter_decrypt($value, request()->module()) === $data[$rule] ? true : '签名验证失败!';
    }
}